package autopeople.domain.auto;

public enum WheelsType {
	UNKNOWN("unknown"), SUMMER("summer"), ALLWEATHER("all weather"), WINTER(
			"winter");

	private final String name;

	private WheelsType(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return name;
	}

	public static WheelsType getValue(String value) {
		try {
			return valueOf(value.replaceAll(" ", "").toUpperCase());
		} catch (final Exception e) {
			return UNKNOWN;
		}
	}
}
